<%@ Page Language="C#" MasterPageFile="~/master/public-regular.master" AutoEventWireup="true"
    CodeFile="login.aspx.cs" Inherits="login" Title="Untitled Page" %>


<asp:Content ID="cntContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
      <div runat="server" id="divMessage">
          <asp:Literal ID="litMessage" runat="server"></asp:Literal>
    </div>
    <div class="regular-pages inline">
        <fieldset>
            <legend>Returning Customer</legend>
            <asp:Panel runat="server" ID="pnlLogin" DefaultButton="btnLogin">
                <label>
                    E-Mail Address</label><br />
                <asp:TextBox ID="tbxEmailAddress" runat="server" CssClass="text" TabIndex="10"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" ControlToValidate="tbxEmailAddress"
                    ErrorMessage="E-Mail Address is required" Display="Dynamic" SetFocusOnError="true"
                    CssClass="validation-message" EnableClientScript="true"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator runat="server" ID="revPersonalEmailAddress" ControlToValidate="tbxEmailAddress"
                    EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                    CssClass="validation-message" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    Display="Dynamic">
                </asp:RegularExpressionValidator><br />
                <label>
                    Password:</label><br />
                <asp:TextBox ID="tbxPassword" runat="server" CssClass="text" TextMode="password"
                    TabIndex="20"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="tbxPassword"
                    ErrorMessage="Password is required" Display="dynamic" SetFocusOnError="true"
                    CssClass="validation-message" EnableClientScript="true">
                </asp:RequiredFieldValidator><br />
                <asp:CheckBox ID="cbxRemember" runat="server" TabIndex="30" />
                <label>
                    Remember me</label>
                [
                <asp:HyperLink ID="hplForgotPassword" runat="server" CssClass="nav">Forgot Password?</asp:HyperLink>
                ]
                <br class="clear" />
            </asp:Panel>
            <br />
            <asp:Button ID="btnLogin" Text="Log In" CssClass="button medium gray" CausesValidation="true"
                OnClick="btnLogin_Click" runat="server" /><br />
        </fieldset>
        <fieldset>
            <legend>New Customer</legend><strong>I am a new customer.</strong>
            <p>
                By creating an account you will be able to shop faster, be up to date on an orders
                status, and keep track of the orders you have previously made.
            </p>
            <p>
                <asp:LinkButton ID="btnCreateAccount" runat="server" CssClass="button medium gray"
                    Text="Create Account" CausesValidation="false" OnClick="btnCreateAccount_Click"></asp:LinkButton></p>
           
        </fieldset>
    </div>
</asp:Content>
